package com.lh.glorypavilion.service.trade.feign.fallback;

import com.lh.glorypavilion.dto.CourseDto;
import com.lh.glorypavilion.result.R;
import com.lh.glorypavilion.service.trade.feign.EduCourseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class EduCourseServiceFallback implements EduCourseService {
    @Override
    public CourseDto getCourseDtoById(String courseId) {
        log.info("调用课程微服务降级保护");
        return null;
    }

    @Override
    public R updateBuyCountById(String courseId) {
        log.info("更新课程销量降级保护");
        return R.error().message("更新课程销量降级保护");
    }
}
